package com.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/test")
public class TestAction extends ActionSupport{
	private static final long serialVersionUID = 1L;

	@Action(value="indexAction",results={@Result(name="success",location="/index.jsp")})
	public String indexAction(){
		return "success";
	}
	@Action(value="aAction",results={@Result(name="success",location="/a/a.jsp")})
	public String aAction(){
		return "success";
	}
	@Action(value="bAction",results={@Result(name="success",location="/b/b.jsp")})
	public String bAction(){
		return "success";
	}

	
}
